package com.newtype.meeting.client.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.extjs.gxt.ui.client.data.BaseModel;

/**
 * 发起会议实体类
 * @author 汪恭泽
 * Jun 15, 2011 2:05:31 PM
 */
@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class MeetingStart extends BaseModel implements Serializable {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String id; //ID
	@Persistent
	private String categoryID;//会议类型
	@NotPersistent
	private String categoryName;//会议类型名称
	@Persistent
	private String openType;//公开对象->0:全公司，2：自订对象
	@Persistent
	private String openName; //自订对象名称（部门名称or姓名）
	@Persistent
	private String openID; //自订对象ID(部门ID or 员工ID)
	@Persistent
	private String notifierID;//通知人ID
	@Persistent
	private String deptName;//发起人部门名称
	@Persistent
	private String deptID; //发起人部门ID
	@Persistent
	private String originatorName;//发起人姓名
	@Persistent
	private String originatorID;//发起人ID
	@Persistent
	private String chairName;//会议主席姓名
	@Persistent
	private String chairID;//会议主席ID
	@Persistent
	private String invitedName;//与会人员姓名or部门名称
	@Persistent
	private String invitedID;//所有与会人员ID
	@Persistent
	private String invitedOthersName;//列席人员
	@Persistent
	private String invitedOthersID;//列席人员ID
	@Persistent
	private String guidance;//外部指导人员
	@Persistent
	private String recorderName;//会议记录
	@Persistent
	private String recorderID;//会议记录ID
	@Persistent
	private String meetingNO;//会议编号
	@Persistent
	private String subject;//议题
	@Persistent
	private String content;//议程
	@Persistent
	private String content2;
	@Persistent
	private Integer htmlTAG;
	@Persistent
	private Date startDate;//开始日期
	@Persistent
	private String startTime;//开始时间
	@Persistent
	private Date endDate;//结束日期
	@Persistent
	private String endTime;//结束时间
	@Persistent
	private String location;//会议地点
	@Persistent
	private Date submitDate;//提交时间
	@Persistent
	private String prevRoom;//预约场地
	@Persistent
	private String prevEquip;//预约设备
	@Persistent
	private Integer draftTAG;//草稿
	@Persistent
	private Integer mailTAG;//发送email邮件
	@Persistent
	private Integer smsTAG;//短讯
	@Persistent
	private Integer msnTAG;//发送MSN消息
	@Persistent
	private Integer skypeTAG;//发送Skype消息
	@Persistent
	private String conflictCheckTAG;//冲突检测
	@Persistent
	private Integer nDateType;
	@Persistent
	private Integer nFrequency;//
	@Persistent
	private Integer nDateSeq; //
	@Persistent
	private Integer nDateMonth;
	@Persistent
	private Integer nDateValue;
	@Persistent
	private String relatedCODE;

	public MeetingStart() {

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOpenType() {
		return openType;
	}

	public void setOpenType(String openType) {
		this.openType = openType;
	}

	public String getOpenName() {
		return openName;
	}

	public void setOpenName(String openName) {
		this.openName = openName;
	}

	public String getOpenID() {
		return openID;
	}

	public void setOpenID(String openID) {
		this.openID = openID;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getDeptID() {
		return deptID;
	}

	public void setDeptID(String deptID) {
		this.deptID = deptID;
	}

	public String getOriginatorName() {
		return originatorName;
	}

	public void setOriginatorName(String originatorName) {
		this.originatorName = originatorName;
	}

	public String getOriginatorID() {
		return originatorID;
	}

	public void setOriginatorID(String originatorID) {
		this.originatorID = originatorID;
	}

	public String getChairName() {
		return chairName;
	}

	public void setChairName(String chairName) {
		this.chairName = chairName;
	}

	public String getChairID() {
		return chairID;
	}

	public void setChairID(String chairID) {
		this.chairID = chairID;
	}

	public String getInvitedName() {
		return invitedName;
	}

	public void setInvitedName(String invitedName) {
		this.invitedName = invitedName;
	}

	public String getInvitedID() {
		return invitedID;
	}

	public void setInvitedID(String invitedID) {
		this.invitedID = invitedID;
	}

	public String getInvitedOthersName() {
		return invitedOthersName;
	}

	public void setInvitedOthersName(String invitedOthersName) {
		this.invitedOthersName = invitedOthersName;
	}

	public String getInvitedOthersID() {
		return invitedOthersID;
	}

	public void setInvitedOthersID(String invitedOthersID) {
		this.invitedOthersID = invitedOthersID;
	}

	public String getGuidance() {
		return guidance;
	}

	public void setGuidance(String guidance) {
		this.guidance = guidance;
	}

	public String getRecorderName() {
		return recorderName;
	}

	public void setRecorderName(String recorderName) {
		this.recorderName = recorderName;
	}

	public String getRecorderID() {
		return recorderID;
	}

	public void setRecorderID(String recorderID) {
		this.recorderID = recorderID;
	}

	public String getMeetingNO() {
		return meetingNO;
	}

	public void setMeetingNO(String meetingNO) {
		this.meetingNO = meetingNO;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getContent2() {
		return content2;
	}

	public void setContent2(String content2) {
		this.content2 = content2;
	}

	public Integer getHtmlTAG() {
		return htmlTAG;
	}

	public void setHtmlTAG(Integer htmlTAG) {
		this.htmlTAG = htmlTAG;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Date getSubmitDate() {
		return submitDate;
	}

	public void setSubmitDate(Date submitDate) {
		this.submitDate = submitDate;
	}

	public String getPrevRoom() {
		return prevRoom;
	}

	public void setPrevRoom(String prevRoom) {
		this.prevRoom = prevRoom;
	}

	public String getPrevEquip() {
		return prevEquip;
	}

	public void setPrevEquip(String prevEquip) {
		this.prevEquip = prevEquip;
	}

	public Integer getDraftTAG() {
		return draftTAG;
	}

	public void setDraftTAG(Integer draftTAG) {
		this.draftTAG = draftTAG;
	}

	public Integer getMailTAG() {
		return mailTAG;
	}

	public void setMailTAG(Integer mailTAG) {
		this.mailTAG = mailTAG;
	}

	public Integer getMsnTAG() {
		return msnTAG;
	}

	public void setMsnTAG(Integer msnTAG) {
		this.msnTAG = msnTAG;
	}

	public Integer getSkypeTAG() {
		return skypeTAG;
	}

	public void setSkypeTAG(Integer skypeTAG) {
		this.skypeTAG = skypeTAG;
	}

	public Integer getNDateType() {
		return nDateType;
	}

	public void setNDateType(Integer dateType) {
		nDateType = dateType;
	}

	public Integer getNFrequency() {
		return nFrequency;
	}

	public void setNFrequency(Integer frequency) {
		nFrequency = frequency;
	}

	public Integer getNDateSeq() {
		return nDateSeq;
	}

	public void setNDateSeq(Integer dateSeq) {
		nDateSeq = dateSeq;
	}

	public Integer getNDateMonth() {
		return nDateMonth;
	}

	public void setNDateMonth(Integer dateMonth) {
		nDateMonth = dateMonth;
	}

	public Integer getNDateValue() {
		return nDateValue;
	}

	public void setNDateValue(Integer dateValue) {
		nDateValue = dateValue;
	}

	public Integer getSmsTAG() {
		return smsTAG;
	}

	public void setSmsTAG(Integer smsTAG) {
		this.smsTAG = smsTAG;
	}

	public String getConflictCheckTAG() {
		return conflictCheckTAG;
	}

	public void setConflictCheckTAG(String conflictCheckTAG) {
		this.conflictCheckTAG = conflictCheckTAG;
	}

	public String getRelatedCODE() {
		return relatedCODE;
	}

	public void setRelatedCODE(String relatedCODE) {
		this.relatedCODE = relatedCODE;
	}

	public String getNotifierID() {
		return notifierID;
	}

	public void setNotifierID(String notifierID) {
		this.notifierID = notifierID;
	}

	public String getCategoryID() {
		return categoryID;
	}

	public void setCategoryID(String categoryID) {
		this.categoryID = categoryID;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public void updateProperties() {
		set("categoryID", getCategoryID());
		set("categoryName", getCategoryName());
		set("openType", getOpenType());
		set("notifierID", getNotifierID());
		set("openName", getOpenName());
		set("openID", getOpenID());
		set("deptName", getDeptName());
		set("deptID", getDeptID());
		set("originatorName", getOriginatorName());
		set("originatorID", getOriginatorID());
		set("chairName", getChairName());
		set("chairID", getChairID());
		set("invitedName", getInvitedName());
		set("invitedID", getInvitedID());
		set("invitedOthersName", getInvitedOthersName());
		set("invitedOthersID", getInvitedOthersID());
		set("guidance", getGuidance());
		set("recorderName", getRecorderName());
		set("recorderID", getRecorderID());
		set("meetingNO", getMeetingNO());
		set("subject", getSubject());
		set("content", getContent());
		set("content2", getContent2());
		set("htmlTAG", getHtmlTAG());
		set("startDate", getStartDate());
		set("startTime", getStartTime());
		set("endDate", getEndDate());
		set("endTime", getEndTime());
		set("location", getLocation());
		set("submitDate", getSubmitDate());
		set("prevRoom", getPrevRoom());
		set("prevEquip", getPrevEquip());
		set("draftTAG", getDraftTAG());
		set("mailTAG", getMailTAG());
		set("smsTAG", getSmsTAG());
		set("msnTAG", getMsnTAG());
		set("skypeTAG", getSkypeTAG());
		set("nDateType", getNDateType());
		set("nFrequency", getNFrequency());
		set("nDateSeq", getNDateSeq());
		set("nDateMonth", getNDateMonth());
		set("nDateValue", getNDateValue());
		set("relatedCODE", getRelatedCODE());
	}
}
